package com.iotechn.unimall.data.dto.excel;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import lombok.Data;

import java.io.Serializable;

/**
 * 大后台导出
 *
 * @author kyms
 * @date 2020-06-28 18:13
 */
@ExcelTarget("adminSkuTotalSummaryDTO")
@Data
public class AdminSkuTotalSummaryDTO implements Serializable {

    private static final long serialVersionUID = 1L;
    private Long skuId;
    @Excel(name = "条码", width = 15d)
    private String barCode;
    @Excel(name = "商品名称", width = 15d)
    private String spuTitle;
    @Excel(name = "规格", width = 15d)
    private String skuTitle;
    @Excel(name = "单位")
    private String unit;

    @ExcelEntity(name = "期初库存")
    private SkuTotalPriceDTO startStock = new SkuTotalPriceDTO();

    private SkuTotalPriceDTO onlineStock = new SkuTotalPriceDTO();

    private SkuTotalPriceDTO offlineStock = new SkuTotalPriceDTO();

    @ExcelEntity(name = "入库")
    private SkuTotalPriceDTO purchaseStock = new SkuTotalPriceDTO();

    @ExcelEntity(name = "出库")
    private SkuTotalPriceDTO salesSendStock = new SkuTotalPriceDTO();

    @ExcelEntity(name = "报损")
    private SkuUnitPriceDTO commonLossStock = new SkuUnitPriceDTO();

    @ExcelEntity(name = "品鉴")
    private SkuUnitPriceDTO tasteLossStock = new SkuUnitPriceDTO();


    //    @ExcelEntity(name = "调入")
    private SkuUnitPriceDTO allotInStock = new SkuUnitPriceDTO();


    //    @ExcelEntity(name = "调出")
    private SkuUnitPriceDTO allotOutStock = new SkuUnitPriceDTO();


    @ExcelEntity(name = "退库")
    private SkuUnitPriceDTO returnStock = new SkuUnitPriceDTO();


    @ExcelEntity(name = "退供应商")
    private SkuUnitPriceDTO returnSupplierStock = new SkuUnitPriceDTO();


    @ExcelEntity(name = "盘盈")
    private SkuUnitPriceDTO checkAddStock = new SkuUnitPriceDTO();


    @ExcelEntity(name = "盘亏")
    private SkuUnitPriceDTO checkSubStock = new SkuUnitPriceDTO();

    @ExcelEntity(name = "期末库存")
    private SkuTotalPriceDTO endStock = new SkuTotalPriceDTO();

    //  @Excel(name = "线上销售")
    private Float onlineNum;

    //@Excel(name = "门店销售")
    private Float offlineNum;

    //  @Excel(name = "销售总数", isColumnHidden = false)
    private Float num;

    //  @Excel(name = "目前库存", isColumnHidden = false, isStatistics = true)
    private Float stock;
    //  @Excel(name = "入库", isColumnHidden = false, isStatistics = true)
    private Float inNum;
    //  @Excel(name = "出库", isColumnHidden = false, isStatistics = true)
    private Float outNum;
    // @Excel(name = "盘库", isColumnHidden = false, isStatistics = true)
    private Float stockCheckNum;
    // @Excel(name = "报损", isColumnHidden = false, isStatistics = true)
    private Float lossNum;

    //  @Excel(name = "退库", isColumnHidden = false, isStatistics = true)
    private Float returnNum;

    // @Excel(name = "退货", isColumnHidden = false, isStatistics = true)
    private Float returnSupplierNum;

}
